package com.lyk.coursearrange.service;

import com.lyk.coursearrange.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyk.coursearrange.entity.dto.AdminDto;
import com.lyk.coursearrange.entity.dto.PostDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lequal
 * @since 2020-03-06
 */
public interface AdminService extends IService<Admin> {

    Admin adminLogin(String username, String password);

    Admin selectaccount(String account);

    Admin selectpassword(String account, String phone);

    AdminDto login(String account, String password);

    int yanzheng(Long user_id, String oldpassword);

    boolean passwordupd(Long user_id, String newpassword);


    List<Admin> userlist(Map<String, String> param);

    Long  usercount(Map<String, String> param);


}
